//
//  LCYRadioDetailCell.m
//  EPA
//
//  Created by lanou3g on 16/4/21.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "LCYRadioDetailCell.h"

@interface LCYRadioDetailCell ()

@property (weak, nonatomic) IBOutlet UIImageView *coverimgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UIImageView *userImageView;
@property (weak, nonatomic) IBOutlet UILabel *userNameLable;



@end

@implementation LCYRadioDetailCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setDetailModel:(LCYRadioDetailModel *)detailModel {
    if (_detailModel != detailModel) {
        _detailModel = detailModel;
    }
}

- (void)layoutSubviews {
    [self.coverimgView sd_setImageWithURL:[NSURL URLWithString:self.detailModel.coverimg]];
    self.titleLable.text = self.detailModel.title;
    [self.userImageView sd_setImageWithURL:[NSURL URLWithString:self.detailModel.playInfoModel.icon]];
    self.userNameLable.text = self.detailModel.playInfoModel.uname;
    
    self.userImageView.layer.cornerRadius = self.userImageView.frame.size.width*0.5;
    self.userImageView.layer.masksToBounds = YES;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
